/**
 * Created by bai on 2015-10-29.
 */
var DIRECTIVE = angular.module('DIRECTIVE',[]);
DIRECTIVE.directive('serviceButton',function($location){
     return{
         restrict:"AE",
         scope:{
             title:'=buttt'
         },

         template:"<button >{{title}}</button>",
         replace:"true",
         link:function(scope, element, attrs){
             console.log(element)
             element[0].onclick = function(){
                 scope.info();
                 //TransmissionData.info = scope.item
             }
         }
     }
})